<template>
    <el-form-item class="xFcityRefresh" label="刷新时间：（秒）"><el-input-number size="mini" v-model="tempValue" controls-position="right" :step="1" /></el-form-item>
</template>

<script>
export default {
    name: 'attr-sxc-refreshTime',
    props: {
        refreshTime: [Number, String]
    },
    data() {
        return {
            tempValue: 0
        };
    },
    mounted() {
        this.tempValue = this.refreshTime * 1;
    },
    watch: {
        refreshTime(val) {
            this.tempValue = val;
        },
        tempValue() {
            this.$emit('update:refreshTime', this.tempValue);
        }
    }
};
</script>

<style lang="scss" scoped></style>
